<!DOCTYPE html>
<html>
<head>
    {include file='public/meta'/}

    <link rel="stylesheet" href="__STATIC_URL__/static/css/addmchat.css"/>
    <link rel="stylesheet" href="__STATIC_URL__/static/css/bootstrapSwitch.css"/>


    <style>
        thead tr th {
            text-align: center;
        }

        tbody tr td {
            text-align: center;
        }

        .content .panel-search {
            border: 1px solid #d0f2f7;
        }

        .panel-default > .panel-heading {
            background: #EEF8FC;
            color: #26929C;
        }
    </style>
    <style>

    </style>
</head>
<body>
{include file='public/header'/}
<!------------------导航-------------------------->
<section id="content1">
    {include file='public/left'/}
    <!--------------------------主要内容区域------------------------------------->
    <div class="content">
        <div class="page-heading">
            <ul class="breadcrumb mgl15 mgr15">
                <li>当前位置是:</li>
                <li>
                    <a href="{:url('index/index')}">首页</a>
                </li>
                <li class="active" style="color: #02b87f;">公告内容</li>
            </ul>
        </div>
        <div class="panel-group" id="accordion" style=" margin: 10px;">
            {volist name="list" id="vo"}
            <div class="panel panel-default"style="margin-bottom:12px;">
                <div class="panel-heading"onclick="show(this);">
                    <h4 class="panel-title">
                        <a data-toggle="collapse" data-parent="#accordion"
                           href="#collapseOne">
                            {$vo.title} <span style="font-size:14px;float:right;"> {$vo.create_time}</span>
                        </a>
                    </h4>
                </div>

                <div id="collapse" class="panel-collapse collapse in">
                    <div class="panel-body">
                        <p>版本号：{$vo.version_no}</p>
                        <div>更新内容： {$vo.content}</div>

                        <!--<a href="{$vo.down_url}" download="{$vo.down_url}">-->
                            <!--<span class="glyphicon glyphicon-download-alt"></span>-->
                            <!--客户端下载-->
                        <!--</a>-->
                    </div>
                </div>
            </div>
            {/volist}

        </div>



        {include file='public/footer'/}

    </div>
</section>



</body>
<script>
    function show(obj){

        $(obj).siblings().toggle("in");
        // console.log($(this));
    }
</script>
<script>

</script>

<!--设备列表 模型 开始-->

<!--设备列表 模型 结束-->

<script>
    function del(obj){
        var id=$(obj).attr("data-id");
        $.ajax({
            url:"{:url('system/changedel')}",
            type:"post",
            dataType:"json",
            data:{
                id:id
            },
            success:function(data){
                // console.log(data);
                alert(data.msg);
                window.location.href = "{:url('system/changelog')}";
            }
        })
    }
</script>
</html>
